package com.pruebas.controller;

import com.pruebas.entity.QuestionModel;
import com.pruebas.entity.QuestionOptionModel;
import javax.persistence.FetchType;
import javax.persistence.ManyToOne;
import javax.validation.constraints.NotNull;
import org.springframework.roo.addon.web.mvc.controller.scaffold.RooWebScaffold;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@RequestMapping("/questionoptionmodels")
@Controller
@RooWebScaffold(path = "questionoptionmodels", formBackingObject = QuestionOptionModel.class)
public class QuestionOptionModelController {

    @NotNull
    @ManyToOne(fetch = FetchType.EAGER)
    private QuestionModel questionModel;
}
